<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8" />
    <title>用户登录</title>
    <style>
        /* 全局样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            color: #333;
        }

        /* 登录容器样式 */
        .login-container {
            width: 100%;
            max-width: 400px;
            background-color: white;
            border-radius: 12px;
            padding: 35px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }

        /* 添加装饰元素 */
        .login-container::before {
            content: '';
            position: absolute;
            top: -50px;
            left: -50px;
            width: 100px;
            height: 100px;
            background-color: rgba(76, 175, 80, 0.1);
            border-radius: 50%;
            z-index: 0;
        }

        .login-container::after {
            content: '';
            position: absolute;
            bottom: -30px;
            right: -30px;
            width: 150px;
            height: 150px;
            background-color: rgba(76, 175, 80, 0.1);
            border-radius: 50%;
            z-index: 0;
        }

        /* 标题样式 */
        .login-container h2 {
            text-align: center;
            margin-bottom: 25px;
            color: #2c3e50;
            position: relative;
            z-index: 1;
        }

        /* 表单样式 */
        .login-container form {
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 1;
        }

        /* 输入框样式 */
        .login-container input[type="text"],
        .login-container input[type="password"] {
            padding: 14px 15px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 15px;
            transition: border 0.3s;
        }

        .login-container input[type="text"]:focus,
        .login-container input[type="password"]:focus {
            border-color: #4CAF50;
            outline: none;
        }

        /* 记住我选项样式 */
        .login-container .remember-me {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .login-container .remember-me input {
            margin-right: 8px;
        }

        /* 登录按钮样式 */
        .login-container input[type="submit"] {
            padding: 14px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
            font-weight: 500;
        }

        .login-container input[type="submit"]:hover {
            background-color: #388E3C;
        }

        /* 额外链接样式 */
        .extra-links {
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
            position: relative;
            z-index: 1;
        }

        .extra-links a {
            color: #4CAF50;
            text-decoration: none;
            margin: 0 5px;
        }

        .extra-links a:hover {
            text-decoration: underline;
        }

        /* 响应式设计 */
        @media (max-width: 480px) {
            .login-container {
                padding: 25px;
            }
        }
    </style>
</head>
<body>
<div class="login-container">
    <h2>用户登录</h2>
    <form action="/user/login" method="post">
        <label for="username">用户名：</label>
        <input type="text" id="username" name="username" required />

        <label for="password">密码：</label>
        <input type="password" id="password" name="password" required />

        <!-- 新增记住我选项 -->
        <label class="remember-me">
            <input type="checkbox" name="rememberMe"> 记住我
        </label>

        <input type="submit" value="登录" />
    </form>
    <div class="extra-links">
        <a href="#">忘记密码？</a> |
        <a href="/user/register">注册账号</a>
    </div>
</div>
</body>
</html>